package youth;
public class normalteens extends Human {
    private String school;
    private String work;
    public void say(){
        if (work == null) {
            System.out.println("这个人的名字是"+name+",年龄是"+age+",性别为"+gender+",在"+school+"就读!");
        }
        else if (school == null) {
            System.out.println("这个人的名字是"+name+",年龄是"+age+",性别为"+gender+",在"+work+"工作!");
        }
        else{
            System.out.println("这个人的名字是"+name+",年龄是"+age+",性别为"+gender+",在"+school+"就读,"+",在"+work+"工作!");
        }
    }
    public void setidentity(String school,String work){
        this.school = school;
        this.work = work;
    }
    public void setschool(String school){
        this.school = school;
    }
    public void setwork(String work){
        this.work = work;
    }
}

